﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TetrisByPhillAndRomaCorp
{
   public class ChangePositionR
    {
        static int changePos = 0;
        public void Change()
        {
            if (Console.KeyAvailable == true)
            {
                var key = Console.ReadKey().Key;
               
                if (key == ConsoleKey.A)
                {
                    ++changePos;
                    switch (changePos)
                    {
                        case 1:
                            Console.Write(changePos);

                            break;
                        case 2:
                            Console.Write(changePos);

                            break;
                        case 3:
                            Console.Write(changePos);

                            break;
                        case 4:
                            Console.Write(changePos);
                            changePos = 0;
                            break;
                    }

                }
            }
        }
    }
}
